#-------------------------------------------------------------------------------
#	Copyright and Disclaimer Notice
#
#	Copyright (c) 2012 A.C. Verbeck
#
#	This file is part of SM: A State Machine Library.
#
#	SM is free software: you can redistribute it and/or modify
#	it under the terms of the GNU General Public License as published by
#	the Free Software Foundation, either version 3 of the License, or
#	(at your option) any later version.
#
#	SM is distributed in the hope that it will be useful,
#	but WITHOUT ANY WARRANTY; without even the implied warranty of
#	MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
#	GNU General Public License for more details.
#
#	You should have received a copy of the GNU General Public License
#	along with SM.  If not, see <http://www.gnu.org/licenses/>.
#
#-------------------------------------------------------------------------------

#-------------------------------------------------------------------------------
#	Environment
#-------------------------------------------------------------------------------
CFLAGS		= -Wall -Werror -ggdb -std=c99 -D BLD_DEBUG
LDLIBS		= -lpopt
EXE_LOC		= /usr/bin

#-------------------------------------------------------------------------------
#	Targets
#-------------------------------------------------------------------------------
TARGET		= pfc_test

#-------------------------------------------------------------------------------
#	Rules
#-------------------------------------------------------------------------------
.PHONY:		all clean install format

all:		$(TARGET)

clean:;		$(RM) *.o
			$(RM) *.bak
			$(RM) *.exe
			$(RM) *.c.orig
			$(RM) *.h.orig

install:;	cp $(TARGET) $(EXE_LOC)

format:;	astyle --style="k&r" --indent=tab --lineend=windows --recursive "*.c"
			astyle --style="k&r" --indent=tab --lineend=windows --recursive "*.h"

#-------------------------------------------------------------------------------
#	Dependencies
#-------------------------------------------------------------------------------
pfc_test:	pfc_test.o pfc.o debug.o

#
#	End of Makefile
#
